using System;
using System.Runtime.Serialization;

namespace AsNum.MySecret.Entity.Database {    
	/// <summary>
	/// Table : dbo.LoginPolicy
	/// 登陆策略
	/// </summary>
	[Serializable]
	[DataContract]
    public class LoginPolicyEntity {

			

		
		/// <summary>
		/// 自动编号
		/// dbo.LoginPolicy.PolicyID
		/// </summary>
		[DataMember]
		public int PolicyID{
			get;set;
		}
					

		
		private int unfreezeTime = 30;
		/// <summary>
		/// 解冻时间
		/// dbo.LoginPolicy.UnfreezeTime
		/// 默认值((30))
        /// </summary>
		[DataMember]
		public int UnfreezeTime{
			get{
				return unfreezeTime;
			}
			set{
				unfreezeTime = value;
			}
		}
					

		
		private int maxFailedCount = 5;
		/// <summary>
		/// 最大失败次数
		/// dbo.LoginPolicy.MaxFailedCount
		/// 默认值((5))
        /// </summary>
		[DataMember]
		public int MaxFailedCount{
			get{
				return maxFailedCount;
			}
			set{
				maxFailedCount = value;
			}
		}
					

		
		private bool enableLoginPolicy = true;
		/// <summary>
		/// 是否启用登陆策略
		/// dbo.LoginPolicy.EnableLoginPolicy
		/// 默认值((1))
        /// </summary>
		[DataMember]
		public bool EnableLoginPolicy{
			get{
				return enableLoginPolicy;
			}
			set{
				enableLoginPolicy = value;
			}
		}
					

		
		private DateTime createTime = new DateTime();
		/// <summary>
		/// 
		/// dbo.LoginPolicy.CreateTime
		/// 默认值(getdate())
        /// </summary>
		[DataMember]
		public DateTime CreateTime{
			get{
				return createTime;
			}
			set{
				createTime = value;
			}
		}
					

		
		/// <summary>
		/// 
		/// dbo.LoginPolicy.Creator
		/// </summary>
		[DataMember]
		public string Creator{
			get;set;
		}
			
	}
}
